var WSocket = {

    init:function(){
        let stomp = Stomp.over(new SockJS(endPoint));

        stomp.connect({},function(frame){
        //	console.debug("连接成功");
            //订阅公共信息源
            stomp.subscribe(commonChannel,handleCommonMessage);
        },function(err){
            console.debug("连接出错",err);
        });
    }
}

export {WSocket}